xl: use libxl_domain_info to get the uuid in printf_info
authorAndre Przywara <andre.przywara@amd.com>
Fri, 1 Oct 2010 14:42:46 +0000 (15:42 +0100)
committerAndre Przywara <andre.przywara@amd.com>
Fri, 1 Oct 2010 14:42:46 +0000 (15:42 +0100)
commitc458c404da168ee07296b6111bf4500cbf14834a
tree5daae96bee25c310dd8b514a0e7670b598bc383c
parentc6bdbe5636272b029cb88bf7b2248613bb176048
xl: use libxl_domain_info to get the uuid in printf_info

If there is no UUID specified in the config file, we generate one during
the _parsing_ process. Since xl list -l parses the config file again,
the UUID will be generated again in this case and the reported
version does probably not match the used one.
Fix this by retrieving the UUID from dominfo (like xl list -v does).

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
committer: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/xl_cmdimpl.c